package com.gopay.common.domain.bank.route.po.pay;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * @description  网联出款通道切换日志
 * @author jianghp
 * @date 2018/5/23 14:48
 * Copyright (c) 2018. www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "PAY_NUCC_OPT_LOG")
public class PayNuccOptLog extends BaseEntity {

    private static final long serialVersionUID = -1558261323540674271L;

    @Id
    @SequenceGenerator(name = "payNuccOptLogSeq", sequenceName = "PAY_NUCC_OPT_LOG_SEQ" ,allocationSize=1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "payNuccOptLogSeq")
    @Column(name = "ID", unique = true, nullable = false)
    private Long id;

    @Column(name = "REC_BANK_CODE")
    private String recBankCode;

    @Column(name = "PRE_BANK_CODE")
    private String preBankCode;

    @Column(name = "CUR_BANK_CODE")
    private String curBankCode;

    @Column(name = "TYPE")
    private String type;

    @Column(name = "OPT_ID")
    private String optId;

    @Column(name = "CREATED_TS")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createdTs;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRecBankCode() {
        return recBankCode;
    }

    public void setRecBankCode(String recBankCode) {
        this.recBankCode = recBankCode;
    }

    public String getPreBankCode() {
        return preBankCode;
    }

    public void setPreBankCode(String preBankCode) {
        this.preBankCode = preBankCode;
    }

    public String getCurBankCode() {
        return curBankCode;
    }

    public void setCurBankCode(String curBankCode) {
        this.curBankCode = curBankCode;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getOptId() {
        return optId;
    }

    public void setOptId(String optId) {
        this.optId = optId;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }
}
